package com.obas.access.business.service.impl;

import java.util.List;

import com.ease.common.vo.MapParameter;
import com.ease.platform.access.service.impl.AbstractParameterizedBeanIbatisAccessServiceImpl;
import com.obas.access.business.service.CustomerAccessService;
import com.obas.model.business.Customer;

public class CustomerAccessServiceImpl extends AbstractParameterizedBeanIbatisAccessServiceImpl<Customer> implements CustomerAccessService {

	
	
	public Customer findOneByMacAddress(String macAddress) {

		MapParameter mapParameter = new MapParameter();
		mapParameter.put(Customer.ATTRIBUTE_MACADDRESS, macAddress);
		List<Customer> accounts = this.find(mapParameter);

		return firstOne(accounts);
	}

}
